package com.caiden_micheal.dynamic.record.web;

import com.caiden_micheal.base.domain.AjxResult;
import com.caiden_micheal.dynamic.record.dto.FindProcessRecordDTO;
import com.caiden_micheal.dynamic.record.service.DProcessRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dProcessRecord")
public class DProcessRecordController {
    @Autowired
    private DProcessRecordService dProcessRecordService;

    @PostMapping("/findProcessRecordById")
    public AjxResult findProcessRecordById(@RequestBody FindProcessRecordDTO findProcessRecordDTO) {
        return dProcessRecordService.findProcessRecordById(findProcessRecordDTO);
    }
}
